using System;

namespace DataAssociations.Repository.Connection.ValidationRules
{
    public class IntValidationAttribute : AbstractValidationAttribute
    {
        public override bool IsValid(string value)
        {
            int result;
            return Int32.TryParse(value, out result);
        }

        public override string ValidationStringError { get { return "should be an int"; }}
    }
}